﻿using PMS.Core.Configuration.CommonEnumConfigs;

namespace PMS.Data.Entities.Customers
{
    /// <summary>
    /// Represents a customer role
    /// </summary>
    public partial class CustomerRole : BaseEntity
    {
        /// <summary>
        /// Gets or sets the customer role name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets Name for displaying
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// Gets or sets Descrption of the Role
        /// </summary>
        public string RoleDescription { get; set; }

        /// <summary>
        /// 用户可拥有多个角色，但需要配合四种固定角色类型才能决定是否有权限访问系统后台
        /// </summary>
        public RoleType RoleType { get; set; }

        /// <summary>
        /// 是否检查角色组下的用户密码过期
        /// </summary>
        public bool EnablePasswordLifetime { get; set; }

        /// <summary>
        /// Gets or sets OrganizatonId the Role belong to
        /// 0 to set no Organize Limitation
        /// </summary>
        public int FKOrganizeId { get; set; }

        /// <summary>
        /// Gets or sets the Order of the role display
        /// </summary>
        public int DisplayOrder { get; set; }

        //Properties Seted in BaseEntity
        //public bool IsActive { get; set; } 
        //public DateTime CreatedOnTimeUtc { get; set; }
        //public DateTime UpdatedOnTimeUtc { get; set; }
    }
}
